package com.scau402.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scau402.system.mapper.WmsBasicClientTypeMapper;
import com.scau402.system.domain.WmsBasicClientType;
import com.scau402.system.service.IWmsBasicClientTypeService;

/**
 * 客户类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
@Service
public class WmsBasicClientTypeServiceImpl implements IWmsBasicClientTypeService 
{
    @Autowired
    private WmsBasicClientTypeMapper wmsBasicClientTypeMapper;

    /**
     * 查询客户类型
     * 
     * @param clientType 客户类型主键
     * @return 客户类型
     */
    @Override
    public WmsBasicClientType selectWmsBasicClientTypeByClientType(String clientType)
    {
        return wmsBasicClientTypeMapper.selectWmsBasicClientTypeByClientType(clientType);
    }

    /**
     * 查询客户类型列表
     * 
     * @param wmsBasicClientType 客户类型
     * @return 客户类型
     */
    @Override
    public List<WmsBasicClientType> selectWmsBasicClientTypeList(WmsBasicClientType wmsBasicClientType)
    {
        return wmsBasicClientTypeMapper.selectWmsBasicClientTypeList(wmsBasicClientType);
    }

    /**
     * 新增客户类型
     * 
     * @param wmsBasicClientType 客户类型
     * @return 结果
     */
    @Override
    public int insertWmsBasicClientType(WmsBasicClientType wmsBasicClientType)
    {
        return wmsBasicClientTypeMapper.insertWmsBasicClientType(wmsBasicClientType);
    }

    /**
     * 修改客户类型
     * 
     * @param wmsBasicClientType 客户类型
     * @return 结果
     */
    @Override
    public int updateWmsBasicClientType(WmsBasicClientType wmsBasicClientType)
    {
        return wmsBasicClientTypeMapper.updateWmsBasicClientType(wmsBasicClientType);
    }

    /**
     * 批量删除客户类型
     * 
     * @param clientTypes 需要删除的客户类型主键
     * @return 结果
     */
    @Override
    public int deleteWmsBasicClientTypeByClientTypes(String[] clientTypes)
    {
        return wmsBasicClientTypeMapper.deleteWmsBasicClientTypeByClientTypes(clientTypes);
    }

    /**
     * 删除客户类型信息
     * 
     * @param clientType 客户类型主键
     * @return 结果
     */
    @Override
    public int deleteWmsBasicClientTypeByClientType(String clientType)
    {
        return wmsBasicClientTypeMapper.deleteWmsBasicClientTypeByClientType(clientType);
    }
}
